<?php

use Faker\Generator as Faker;

$factory->define(App\Models\Product::class, function (Faker $faker) {

    $coffees = [
        '美式',
        '摩卡',
        '冰萃',
        '卡布奇诺',
        '牛奶咖啡',
    ];
    $coffee = $faker->randomElement($coffees);
    return [
        'name' => $coffee,
        'description'=> $faker->sentence(),
        'image' => str_random(10),
        'price' => random_int(5, 12)
    ];
});
